package com.xuxuduoduomei.knowledge_base.service;

import com.xuxuduoduomei.knowledge_base.domain.Demo;
import com.xuxuduoduomei.knowledge_base.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:xuxuduoduomei
 * @Date:2021/12/20 21:34
 */
@Service
public class DemoService {

    @Autowired
    private DemoMapper demoMapper;

    public List<Demo> list() {
        return demoMapper.selectByExample(null);
    }
}
